package com.lj.ljminsu.merchant.GuanjiaController;

import com.lj.ljminsu.merchant.GuanjiaBean.PinjiaUtil;
import com.lj.ljminsu.merchant.GuanjiaService.IoPinjService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@CrossOrigin
public class HUifController {
    @Resource
    private IoPinjService ioPinjService;
    @RequestMapping("HUIf")
    @ResponseBody
    public Integer toHUIf(Integer oderId,String desc ){
//        TjPinjia tjPinjia = ioPinjService.FinPbyId(oderId);
//        String keDesc = tjPinjia.getKeDesc();
//        String desc1 = tjPinjia.getsDesc();
        PinjiaUtil pinjiaUtil=new PinjiaUtil();
        pinjiaUtil.setFindTjv(desc);
        pinjiaUtil.setFinfTj(oderId);
        Integer s = ioPinjService.UpdeteS(pinjiaUtil);
        int m=1;
        return m;
    }
}
